#include <iostream>

using namespace std;

class Singleton{
private:
    Singleton(){}

public:
    Singleton(const Singleton &)=delete;
    Singleton &operator=(const Singleton &)=delete;

    static Singleton &getInstance(){
        static Singleton s;
        return s;
    }

};

void test(){
    Singleton::getInstance();
    Singleton::getInstance();
}

int main()
{
    test();
    return 0;
}

